package com.erp.erp_servers.Message;

import com.erp.erp_entitys.Message.MessageUserDetail;
import com.erp.erp_entitys.Message.MessageUserDetailExample;
import com.erp.erp_entitys.Message.UserUnReadGroupTypeRes;

import java.util.List;

/**
 * @author zjk
 * @version 1.0
 * @description
 * @date 2021-11-21 23:26
 */
public interface IMessageUserDetailService {
    int deleteByExample(MessageUserDetailExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MessageUserDetail record);

    int insertSelective(MessageUserDetail record);

    List<MessageUserDetail> selectByExample(MessageUserDetailExample example);

    MessageUserDetail selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MessageUserDetail record);

    int updateByPrimaryKey(MessageUserDetail record);


    /**
     * 查询当前登录人 的未读消息，根据类型分类
     * @return
     */
    UserUnReadGroupTypeRes queryUnReadByType(String userCode);
    //修改消息已读状态
    int updateMessageReadStatus(List<Integer> ids,String receiverCode);
}
